Section 1.5: First-Order Linear Equations

Definitions and Characteristics

Examples


Motivation: Mixture Problems

A technical diagram of a mixing tank model used for differential equations, showing inflow from a pipe above and outflow from a pipe at the bottom right.

The goal is to model the amount \(A(t)\) of a substance in a solution over time.

The change in amount \(\Delta A\) over a small time interval \(\Delta t\) is given by:

$$\Delta A = (r_{in}c_{in} - r_{out}c_{out})\Delta t$$

Taking the limit as \(\Delta t \to 0\):

$$\frac{dA}{dt} = r_{in}c_{in} - r_{out}c_{out}(t)$$

If the solution is "well-mixed," we assume \(c_{out}(t) = \frac{A(t)}{v(t)}\). The resulting Ordinary Differential Equation (ODE) is:

$$\frac{dA}{dt} + \frac{r_{out}}{v(t)}A(t) = r_{in}c_{in}$$

This follows the standard form: \(y' + P(x)y = Q(x)\).


Solving the General First-Order Linear Equation

General form: \(\alpha(x)y' + \beta(x)y = \gamma(x)\)

Standard Form: Normalize by dividing by \(\alpha(x)\) to get:

$$y' + P(x)y = Q(x)$$

The Integrating Factor Method

  1. Find the integrating factor \(\rho(x) = e^{\int P(x) dx}\).
  2. Multiply the standard form equation by \(\rho(x)\):

    $$\rho y' + \rho P y = \rho Q$$

  3. Recognize the left side as a product rule: \((\rho y)' = \rho Q\).
  4. Integrate both sides and solve for \(y\):

    $$y = \frac{\int \rho Q dx + C}{\rho}$$


Example 1

Find a general solution for \(y' - y = 3e^{-x}\).

Step 1: Identify \(P(x) = -1\) and \(Q(x) = 3e^{-x}\).
Calculate \(\rho = e^{\int -1 dx} = e^{-x}\).

Step 2: Multiply and integrate.
\((e^{-x} \cdot y)' = e^{-x}(3e^{-x}) = 3e^{-2x}\)
\(e^{-x} y = \int 3e^{-2x} dx = -\frac{3}{2}e^{-2x} + C\)

Step 3: Solve for \(y\).
\(y = -\frac{3}{2}e^{-x} + Ce^x\)

Example 2

Find a general solution for \(xy' - 5y = x^6 \cos(x)\).

Standard form: Divide by \(x\) to get \(y' - \frac{5}{x}y = x^5 \cos(x)\).

Step 1: \(\rho = e^{\int -\frac{5}{x} dx} = e^{-5 \ln|x|} = x^{-5}\).

Step 2: \((x^{-5} y)' = x^{-5}(x^5 \cos(x)) = \cos(x)\).
\(x^{-5} y = \int \cos(x) dx = \sin(x) + C\)

Step 3: \(y = x^5 \sin(x) + Cx^5\).

Initial Value Problem (IVP)

If given \(y(\pi/2) = 0\):
\(0 = (\pi/2)^5 \sin(\pi/2) + C(\pi/2)^5\)
\(0 = (\pi/2)^5 (1 + C) \implies C = -1\).

Solution: \(y(x) = x^5(\sin(x) - 1)\).Oscillating curve that expands in amplitude as it moves away from the y-axis, representing the function y = x^5(sin(x)-1).